package com.sakura.thread.chapter6;

import java.util.ArrayList;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * Created by apple on 2018/12/18.
 */
public class ReadWriteLockTest {
    private ArrayList<String> array = new ArrayList<String>();
    private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
    private final Lock readLock = lock.readLock();
    private final Lock writeLock = lock.writeLock();





}
